<!-- 继承父集 -->
{%extends 'layout.html'%}

{%block main%}
<ol class="breadcrumb">
  <li><a href="/admin">管理首页</a></li>
  <li><span>添加内容</span></a></li>
</ol>
<h3>添加内容</h3>
<form role="form" method="post">
  <div class="form-group">
    <label for="category">所属分类</label>
    <select class="form-control" name="category">
      {%for category in categorys%}
        <option value="{{ category.id }}">{{ category.name }}</option>
      {%endfor%}
    </select>
  </div>
  <div class="form-group">
    <label for="title">标题</label>
    <input type="text" class="form-control" id="exampleInputPassword1" placeholder="标题" name="title">
  </div>
  <div class="form-group">
    <label for="description">简介</label>
    <input type="text" class="form-control" id="exampleInputPassword1" placeholder="请输入内容简介" name="description">
  </div>
  <div class="form-group">
    <label for="content">内容</label>
    <textarea class="form-control" rows="3" name="content" placeholder="请输入内容"></textarea>
    <!-- <input type="text" class="form-control" id="exampleInputPassword1" placeholder="请输入内容" name="content"> -->
  </div>
  <button type="submit" class="btn btn-default">Submit</button>
</form>
{%endblock%}
